module.exports = {
  title: "Nil ELE UI",
  lang: "zh-CN",
  // base: "/nil-ele-ui/",
  description: "基于 Element-Plus 的 UI 库.",
  head: [
    // 改变title的图标
    [
      "link",
      {
        rel: "icon",
        href: "https://s3.bmp.ovh/imgs/2022/03/5544d9d4cbec866b.png", //图片放在public文件夹下
      },
    ],
  ],
  themeConfig: {
    nav: [
      { text: "指南", link: "/guide/" },
      { text: "组件", link: "/component/page" },
    ],
    // 侧边栏导航内容
    sidebar: {
      "/guide/": [
        {
          text: "指南",
          children: [
            { text: "介绍", link: "/guide/" },
            { text: "快速上手", link: "/guide/getting-started" },
          ],
        },
      ],
      "/component/": [
        {
          text: "组件",
          children: [
            { text: "Page - 页面", link: "/component/page" },
            { text: "Search - 搜索", link: "/component/search" },
            { text: "ThinTable - 简单表格", link: "/component/thin-table" },
          ],
        },
      ],
    },
  },

  markdown: {
    config: (md) => {
      const { demoBlockPlugin } = require("vitepress-theme-demoblock");
      md.use(demoBlockPlugin);
    },
  },
};
